#include "TankData.h"




void TankData::initSprite()
{
	sprites = new Sprites(rect);
	sprites->addSprite(_STATE_MAP_STAGE3_TANK_1, _ID_MAP_STAGE3_TANK_1, 40);
	sprites->setState(_STATE_MAP_STAGE3_TANK_1);
}

TankData::TankData(int id, int type, double x, double y)
{
	this->id = id; 
	this->type = type;
	this->rect = new Rect(x, y, _OBS_TANK_3_HEIGHT, _OBS_TANK_3_WIDTH);
	this->rect->Vx = 0;
	this->rect->Vy = -6;

	this->initData();
}

void TankData::initSpriteHandler(LPD3DXSPRITE spritehandler)
{
	sprites->initSpriteHandler(spritehandler);
}

void TankData::initData()
{
	this->initSprite();
}
